/**
 * @author yuyangyang
 * @time 2015/3/16
 */
var mongoose = require('./mongoose');
var Schema = mongoose.Schema;


var JoinSchema = new Schema({
    meet: {
        type: Schema.Types.ObjectId,
        ref: 'MeetModel'
    },
    joiner: {
        type: Schema.Types.ObjectId,
        ref: 'UserModel'
    },
    joinTime: {
        type: Date,
        default: Date.now
    }
});

module.exports = mongoose.model('JoinModel', JoinSchema);